<div class="container">
    <nav class="navbar navbar-inverse" role="navigation">
        <div class="container-fluid">
            <!--导航头部-->
            <div class="navbar-header">
                <!-- 移动设备上的导航切换按钮 -->
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-pwd">
                    <span class="sr-only">切换导航</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <!-- 品牌名称或logo -->
                <a class="navbar-brand" href="{:U('Index/index')}">{$Think.config.PWD_NAME}</a>
            </div>
            <!--导航项目-->
            <div class="collapse navbar-collapse navbar-collapse-pwd">
                <ul class="nav navbar-nav">
                    <li <eq name="Think.const.CONTROLLER_NAME" value="Category">class="active"</eq>><a href="{:U('Category/index')}">密码类别</a></li>
                    <li <eq name="Think.const.CONTROLLER_NAME" value="Password">class="active"</eq>><a href="{:U('Password/index')}">密码清单</a></li>
                    <li <eq name="Think.const.CONTROLLER_NAME" value="Tool">class="active"</eq>><a href="{:U('Tool/index')}">生成密码</a></li>
                    <li <eq name="Think.const.CONTROLLER_NAME" value="Recycle">class="active"</eq>><a href="{:U('Recycle/index')}">回收站</a></li>
                </ul>
                <!-- 右侧的导航项目 -->
                <ul class="nav navbar-nav navbar-right">
                    <li <eq name="Think.const.CONTROLLER_NAME" value="Profile">class="active"</eq>><a href="{:U('Profile/index')}">{$Think.session.user.email}</a></li>
                    <li><a href="{:U('User/logout')}">安全退出</a></li>
                </ul>
            </div> <!--end navbar-collapse-->
        </div>
    </nav>
</div>